/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Xavier
 */
public class Client {

    private int idBase;
    private int idAppli;
    private String nom;
    private List<Contact> listContact;
    private ArrayList<Adresse> listAdresse;
    private ArrayList<Article> listArticle;
    private ArrayList<Commande> listCommande;
    private ArrayList<Demande> listDemande;

    public Client() {
    }

    /**
     *
     * @param idBase
     * @param idAppli
     * @param nom
     */
    public Client(int idBase, int idAppli, String nom) {
        this.idBase = idBase;
        this.idAppli = idAppli;
        this.nom = nom;
    }

    /**
     *
     * @return idBase
     */
    public int getIdBase() {
        return idBase;
    }

    /**
     *
     * @param idBase the idBase to set
     */
    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    /**
     *
     * @return idAppli
     */
    public int getIdAppli() {
        return idAppli;
    }

    /**
     *
     * @param idAppli the idAppli to set
     */
    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }

    /**
     *
     * @return nom
     */
    public String getNom() {
        return nom;
    }

    /**
     *
     * @param nom the nom to set
     */
    public void setNom(String nom) {
        this.nom = nom;
    }

    /**
     *
     * @return listContact
     */
    public List<Contact> getListContact() {
        return listContact;
    }

    /**
     *
     * @param listContact the listContact to set
     */
    public void setListContact(List<Contact> listContact) {
        this.listContact = listContact;
    }

    /**
     *
     * @return listAdresse
     */
    public ArrayList<Adresse> getListAdresse() {
        return listAdresse;
    }

    /**
     *
     * @param listAdresse the listAdresse to set
     */
    public void setListAdresse(ArrayList<Adresse> listAdresse) {
        this.listAdresse = listAdresse;
    }

    /**
     *
     * @return listArticle
     */
    public ArrayList<Article> getListArticle() {
        return listArticle;
    }

    /**
     *
     * @param listArticle the listArticle to set
     */
    public void setListArticle(ArrayList<Article> listArticle) {
        this.listArticle = listArticle;
    }

    /**
     *
     * @return listCommande
     */
    public ArrayList<Commande> getListCommande() {
        return listCommande;
    }

    /**
     *
     * @param listCommande the listCommande to set
     */
    public void setListCommande(ArrayList<Commande> listCommande) {
        this.listCommande = listCommande;
    }

    /**
     *
     * @return listDemande
     */
    public ArrayList<Demande> getListDemande() {
        return listDemande;
    }

    /**
     *
     * @param listDemande the listDemande to set
     */
    public void setListDemande(ArrayList<Demande> listDemande) {
        this.listDemande = listDemande;
    }

    /**
     *
     * @return String
     */
    @Override
    public String toString() {
        return "Client{" + "idBase=" + idBase + ", idAppli=" + idAppli + ", nom=" + nom + ", listContact=" + listContact + ", listAdresse=" + listAdresse + ", listArticle=" + listArticle + ", listCommande=" + listCommande + ", listDemande=" + listDemande + '}';
    }
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"nom\":\""+ nom +"\"}";
    }
}
